@extends('front.public_layout.layout')


@section('style')
    <link rel="stylesheet" href="{{asset('/front/css/article.css')}}">
    <style>

    </style>
@endsection

@section('content')
    <div class="middle-content article">

        <div class="article-details">
            <div class="article-header">
                <div class="title">{{ $publish->region_info ? '【'.$publish->region_info->region_name.'】' : '' }}{{ $publish->pub_title }}</div>
                <div class="auther inline-block">
                    {{ $publish->created_at }}
                </div>
                <div class="right">
                    <div class="zan">{{ $publish->zan_num }}</div>
                    <div class="collect">{{ $publish->collect_num }}</div>
                </div>
            </div>

            <div class="article-content">
                @if ($publish->imgs_url)
                <div class="content-img">
                    @foreach ($publish->imgs_url as $imgs_url_val)
                    <img src="{{ $imgs_url_val }}" alt="">
                    @endforeach
                </div>
                @endif

                {!! $publish->pub_content !!}

                <div>
                    联系人：{{ $publish->contact }}<br>
                    联系电话：{{ $publish->mobile }}
                </div>
            </div>
        </div>

        <div class="right-content right">
            <div class="auther-info">
                <div class="head-img"><img src="{{ $publish->articles_author['avatar_url'] }}" alt=""></div>
                <a href="{{ url('author/'.$publish->articles_author['id'].'/'.$publish->is_admin) }}" class="a-name">{{ $publish->articles_author['name'] }}发布</a>
                <div class="watch-btn">+  点击关注</div>

                <div class="auther-data clear">
                    <div class="item">
                        <div>{{ $authorArticleCount }}</div>
                        <div>文章</div>
                    </div>
                    <div class="item right">
                        <div>{{ $publish->articles_author['fans_num'] }}</div>
                        <div>粉丝数</div>
                    </div>
                </div>
            </div>

        </div>

    </div>

@endsection


@section('js')

    <script>


    </script>
@endsection